package cn.nsu.douban.entity;

import java.io.Serializable;

/**
 * 用户类
 * @author GT72
 *
 */
public class User  implements Serializable { 
	
	/**
	 * 序列
	 */
  
	 private UserType type;
	
	//用户ID
  private Integer id;
  
  //用户登录名
  private String loginname;
  
  //用户登录密码
  private String password;
	  
  //用户电话号码
  private String phone;
  
  //用户email
  private String useremail;
  
  //用户姓名
  private String username;

public Integer getId() {
	return id;
}

public void setId(Integer id) {
	this.id = id;
}

public String getLoginname() {
	return loginname;
}

public void setLoginname(String loginname) {
	this.loginname = loginname;
}

public String getPassword() {
	return password;
}

public void setPassword(String password) {
	this.password = password;
}

public String getPhone() {
	return phone;
}

public void setPhone(String phone) {
	this.phone = phone;
}

public String getUseremail() {
	return useremail;
}

public void setUseremail(String useremail) {
	this.useremail = useremail;
}

public String getUsername() {
	return username;
}

public void setUsername(String username) {
	this.username = username;
}

@Override
public String toString() {
	return "User [id=" + id + ", loginname=" + loginname + ", password=" + password + ", phone=" + phone
			+ ", useremail=" + useremail + ", username=" + username + "]";
}

public User(Integer id, String loginname, String password, String phone, String useremail, String username) {
	super();
	this.id = id;
	this.loginname = loginname;
	this.password = password;
	this.phone = phone;
	this.useremail = useremail;
	this.username = username;
}

public User() {
}
  
  

}
